import { createApp } from 'vue'
import '@/assets/style.css'
import App from './App.vue'
import { initRouter } from "./router/index"
import { initDirective } from './directive'
import 'element-plus/es/components/message/style/css'
import 'element-plus/es/components/message-box/style/css'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

app.use(pinia)
initRouter(app)
initDirective(app)
app.mount('#app')
